﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace HongStone.Repository.Migrations
{
    public partial class tran : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            
            migrationBuilder.CreateTable(
                name: "TrainAndMore",
                columns: table => new
                {
                    TrainMoreId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    TrainAndMoreNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    StaffId = table.Column<int>(type: "int", nullable: false),
                    DeptId = table.Column<int>(type: "int", nullable: false),
                    EntryFee = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    AirTicket = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    Stay = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    Rest = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    Total = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    InTotal = table.Column<decimal>(type: "decimal(18,2)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_TrainAndMore", x => x.TrainMoreId);
                });

            migrationBuilder.CreateTable(
                name: "TrainAndOne",
                columns: table => new
                {
                    TrainOneId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    TrainAndOneNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Character = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Content = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    EndTime = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_TrainAndOne", x => x.TrainOneId);
                });

           
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Accessory");

            migrationBuilder.DropTable(
                name: "AnnualLeave");

            migrationBuilder.DropTable(
                name: "ArchiteCture");

            migrationBuilder.DropTable(
                name: "ArchitectureClass");

            migrationBuilder.DropTable(
                name: "AssessmentTotal");

            migrationBuilder.DropTable(
                name: "AssessSchedule");

            migrationBuilder.DropTable(
                name: "AttendanceMessage");

            migrationBuilder.DropTable(
                name: "BudingType");

            migrationBuilder.DropTable(
                name: "Building");

            migrationBuilder.DropTable(
                name: "charges");

            migrationBuilder.DropTable(
                name: "Clocking_inApplyFo");

            migrationBuilder.DropTable(
                name: "Customer");

            migrationBuilder.DropTable(
                name: "CustomerCity");

            migrationBuilder.DropTable(
                name: "DayOffTable");

            migrationBuilder.DropTable(
                name: "Department");

            migrationBuilder.DropTable(
                name: "DepartmentManagerSet");

            migrationBuilder.DropTable(
                name: "DepartmentManagerZhong");

            migrationBuilder.DropTable(
                name: "DepartmentSubsidy");

            migrationBuilder.DropTable(
                name: "DeptAssessment");

            migrationBuilder.DropTable(
                name: "DeptCount");

            migrationBuilder.DropTable(
                name: "DeptSalaryCount");

            migrationBuilder.DropTable(
                name: "DeptSalaryCountDept");

            migrationBuilder.DropTable(
                name: "DictionariesTable");

            migrationBuilder.DropTable(
                name: "Education");

            migrationBuilder.DropTable(
                name: "Employee");

            migrationBuilder.DropTable(
                name: "EmployeeCertifivate");

            migrationBuilder.DropTable(
                name: "EmployeeManpower");

            migrationBuilder.DropTable(
                name: "EmployeesWork");

            migrationBuilder.DropTable(
                name: "ExtendInformation");

            migrationBuilder.DropTable(
                name: "FastLink");

            migrationBuilder.DropTable(
                name: "Function");

            migrationBuilder.DropTable(
                name: "FunctionMenu");

            migrationBuilder.DropTable(
                name: "FunctionModule");

            migrationBuilder.DropTable(
                name: "gonggaos");

            migrationBuilder.DropTable(
                name: "Interview");

            migrationBuilder.DropTable(
                name: "Login");

            migrationBuilder.DropTable(
                name: "Personnel");

            migrationBuilder.DropTable(
                name: "PositionMessage");

            migrationBuilder.DropTable(
                name: "Progress");

            migrationBuilder.DropTable(
                name: "Project");

            migrationBuilder.DropTable(
                name: "ProjectAssessment");

            migrationBuilder.DropTable(
                name: "ProjectLeader");

            migrationBuilder.DropTable(
                name: "ProjectParticipation");

            migrationBuilder.DropTable(
                name: "ResponsiblePerson");

            migrationBuilder.DropTable(
                name: "rizhis");

            migrationBuilder.DropTable(
                name: "RoleAdministrator");

            migrationBuilder.DropTable(
                name: "SalaryUpdate");

            migrationBuilder.DropTable(
                name: "SatisfactionSurvey");

            migrationBuilder.DropTable(
                name: "SpecialDayOffTable");

            migrationBuilder.DropTable(
                name: "Staff");

            migrationBuilder.DropTable(
                name: "StaffSalary");

            migrationBuilder.DropTable(
                name: "Statistics");

            migrationBuilder.DropTable(
                name: "Structuralstyle");

            migrationBuilder.DropTable(
                name: "TheAssessmentTask");

            migrationBuilder.DropTable(
                name: "Thecontract");

            migrationBuilder.DropTable(
                name: "Train");

            migrationBuilder.DropTable(
                name: "TrainAndMore");

            migrationBuilder.DropTable(
                name: "TrainAndOne");

            migrationBuilder.DropTable(
                name: "YearBonus");
        }
    }
}
